import { defineConfig } from 'vite'
import path from 'path'
import react from '@vitejs/plugin-react-swc'
function resolve(dir) {
  // eslint-disable-next-line no-undef
  return path.resolve(__dirname, dir);
}
// import eslintPlugin from 'vite-plugin-eslint'
// https://vitejs.dev/config/
export default defineConfig({
  plugins: [
    react(),
    // eslintPlugin({
    //   include: ['src/*.jsx', 'src/**/*.jsx']
    // })
  ],
  resolve: {
    alias: {
      '@':resolve("src"),
    }
  },
  css: {
    modules: {
      localsConvention: 'camelCase'
    }
  }
})
